@mixin size ($width, $height) {
  width: $width;
  height: $height;
}

body {  
  background-color: #151515;
  color: #fff;
  margin: 0;
}
.header {
  background-color: #fa4f4f;
  &__h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    padding: 5px;
    padding-left: 30px;
  }
}

.section {
  padding-block: 20px;
  &__page, &__page--active {
    padding: 10px;
    padding-inline: 15px;
    cursor: pointer;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    display: block;
  }
  &__page:hover {
    color: teal;
  }

  &__page--active {
  background-color: #fff;
    color: #000;
  }
  &__btn svg {
    @include size(36px, 36px);
  }
  &__btn {
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 3px;
    background-color: #353535;
  }
  &__pagination-list {
    margin: 0;
    margin-bottom: 30px;
    padding: 0;
    padding-left: 30px;
    display: flex;
    list-style-type: none;
  }
  &__h2 {
    padding-left: 30px;
    margin-top: 0;
  }
  &__list {
    display: flex;
    column-gap: 15px;
    margin: 0;
    padding: 0;
    padding-inline: 30px;
    list-style-type: none;
    margin-bottom: 30px;
  }
  &__items-container {
    display: flex;
    justify-content: flex-start;
  }
  &__link {
    display: inline-block;
    @include size(100%, 100%);
  }
  &__rating {
    font-size: 2rem;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 0;
  }
  &__header {
    margin-block: 10px;
  }
  &__release-date {
    margin: 0;
  }
  &__link:hover {
    cursor: pointer;
    .section__header {
      color: teal;

    }
  }
}

.similar-section {
  &__container {
    display: flex;
    justify-content: space-evenly;
  }
  &__list {
    display: flex;
    column-gap: 15px;
    margin: 0;
    padding: 0;
    padding-inline: 30px;
    list-style-type: none;
  }
  &__h2 {
    font-size: 2rem;
    color: teal;
    border: 1px solid red;
    text-align: center;
  }
  &__h2--show {
    font-size: 1.25rem;
    text-align: center;
  }
  &__img {
    max-width: 100%;
  }
  &__header {
    font-size: 1rem;
    margin-bottom: 0;
  }
  &__link {
    display: inline-block;
    @include size(100%, 100%);
    text-decoration: none;
    color: #fff;
  }
  &__link:hover {
    color: teal;
  }
}

